package main

import (
	"github.com/gin-gonic/gin"
	"time"
)

type Person struct {
	Name string `form:"name" binding:"required,gt=10"`
	Address string `form:"address" binding:"required"`
	Birthday time.Time `form:"birthday" time_format:"2006-01-02" binding:"required"`
}

func main(){
	r := gin.Default()
	r.LoadHTMLGlob("template/*")
	r.GET("/index", testing)
	r.Run()
}

func testing (c *gin.Context) {
	c.HTML(200, "index.html", gin.H{
		"title" : "index.html",
	})
}